package main.java.FSMDE.models;

import java.util.UUID;

public class ComplexComponent extends Component {

	private ComponentCollection components;

	protected ComplexComponent(UUID componentId, String componentName,
			ComponentType componentType) {

		super(componentId, componentName, componentType);
		components = new ComponentCollection();
	}

	protected ComplexComponent(UUID componentId, String componentName,
			ComponentType componentType,
			ComponentCollection componentsCollection) {

		super(componentId, componentName, componentType);
		components = componentsCollection;
	}

	public ComponentCollection getComponents() {
		return components;
	}

	public void setComponents(ComponentCollection components) {
		this.components = components;
	}

	public boolean isComplex() {
		return true;
	}
}
